package TwoDay;

import java.util.Scanner;

public class noon1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.printf("请输入一个浮点型数");
        double v = scanner.nextDouble();
        System.out.printf("保留两位小数，四舍五入");
        double v1 = (int) (v * 100 + 0.5) / 100.0;
        System.out.println("v1 = " + v1);
    }
}
